//
//  WBDemoViewController.swift
//  陌路微博
//
//  Created by 张继强 on 16/12/5.
//  Copyright © 2016年 张继强. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.navIteam.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    @objc fileprivate func nextAction(){
        let vc = WBDemoViewController()
        self.navigationController?.pushViewController(vc, animated: true)
    }
}
extension WBDemoViewController{
    override func setupUI() {
        super.setupUI()
        navIteam.rightBarButtonItem = UIBarButtonItem.init(title: "下一个", fontSize: 16, target: self, action: #selector(nextAction), isBack: false)
    }
}
